#include <stdio.h>
#include <stdlib.h>

int main()
{
  float fuhe_interest = 100;
  float danyi_interest = 100;
  int year = 0;
  do
  {
    fuhe_interest += fuhe_interest * 0.05;
    danyi_interest += 100 * 0.1;
    year++;
  }while(fuhe_interest <= danyi_interest);
  
  printf("总年：%d\n单一收入为：%.2f\n复合收入为：%.2f\n",year,danyi_interest,fuhe_interest);
  return 0;
}


